package com.evildog.workspace.common.exception;


import com.evildog.workspace.common.enums.CommonCustomExceptionDesc;
import com.evildog.workspace.common.intefaces.ICustomExceptionDesc;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.http.HttpStatus;

/**
 * 服务器错误
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class ServerErrorException extends CommonException {

    private static final long serialVersionUID = 6801519635531297845L;

    public ServerErrorException() {
        this(CommonCustomExceptionDesc.SERVER_ERROR);
    }

    public ServerErrorException(ICustomExceptionDesc responseStatus){
        super(responseStatus, HttpStatus.INTERNAL_SERVER_ERROR);
    }

}
